// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** saveCompany POST /api/company/add */
export async function saveCompanyUsingPost(body: API.CompanyDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/company/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteCompany POST /api/company/delete */
export async function deleteCompanyUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/company/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listUserVoByPage POST /api/company/list/page */
export async function listUserVoByPageUsingPost1(
  body: API.CompanyDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageCompanyDTO_>('/api/company/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateConmpany POST /api/company/update */
export async function updateConmpanyUsingPost(
  body: API.CompanyDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/company/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
